package enemyObject;

import com.sxt.*;

import java.awt.*;

abstract public class EnemyObject extends GameObject {
    //动画标识
    public int flag ;
    //战机的血量
    public int life = 1;
    //敌机的分数
    public int score;
    public EnemyObject() {
        super();
    }

    public EnemyObject(String image, GameWin frame) {
        super(image, frame);
    }

    public EnemyObject(String image, int x, int y, int speedY, GameWin frame,int flag) {
        super(image, x, y, speedY, frame);
        this.flag = flag;
    }

    public EnemyObject(String image, int x, int y, int width, int height, int speedY, GameWin frame,int flag) {
        super(image, x, y, width, height, speedY, frame);
        this.flag=flag;
    }

    @Override
    abstract public void paintSelf(Graphics s);

    @Override
    abstract public Rectangle getRec();

    @Override
    abstract public void DeBug();
}
